//import { baseRequest } from '@/services';
//import {OauthClientDetailsType} from "@/datatypes/oauth_client_details/data.d.ts";


import { request } from '@@/exports';

export async function login(params: Login.LoginParams) {
  return request<API.Result>('/api/auth/oauth/token', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    params,
  });
}
